package com.ym9527.jpa;

import com.ym9527.entity.LostAndFoundRequest;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;


public interface LostAndFoundJpa extends JpaRepository<LostAndFoundRequest,Long> {

  List<LostAndFoundRequest> findByCreateUserId(Long id);

  LostAndFoundRequest findByCreateUserIdAndLostId(Long userId,Long lostId);

  List<LostAndFoundRequest> findByOrderByLostId();

}
